import request from '../utils/Request';

const orderApi={
    selectByCondition(pageNo,pageSize,searchStudent){
        return request({
            url:'/orderApi/orderApi/loadList',
            method:'post',
            params:{
                pageNo,
                pageSize,
            },
            data:searchStudent
        })
    },
    addorder(order){
        return request({
            url:'/orderApi/orderApi/addOrder',
            method:'post',
            data:order
        })
    },
    updateorder(order){
        return request({
            url:'/orderApi/orderApi/updateOrder',
            method:'put',
            data:order
        })
    },
    deleteById(id){
        return request({
            url:`/orderApi/orderApi/deleteOrder`,
            method:'delete',
            data:id
        })
    },
}


export default orderApi
